<!--
 This  code was generated from a template.  Change the
 Status value below to something other than Generated if you have
 customized this file to prevent changes from being overwritten.

 <CreatedByUserName>INCODE-1\Dave</CreatedByUserName>
 <CreatedDate>4/12/2014</CreatedDate>
 <Status>Generated</Status>
-->
<UserControl x:Class="MoPlus.SolutionBuilder.WpfClient.UserControls.SolutionDesignerControl"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:VM="clr-namespace:MoPlus.ViewModel;assembly=MoPlus.ViewModel"
                    xmlns:cvm="clr-namespace:MoPlus.ViewModel.Conventions;assembly=MoPlus.ViewModel"
                    xmlns:DiagramsVM="clr-namespace:MoPlus.ViewModel.Diagrams;assembly=MoPlus.ViewModel"
                    xmlns:EntitiesVM="clr-namespace:MoPlus.ViewModel.Entities;assembly=MoPlus.ViewModel"
                    xmlns:InterpreterVM="clr-namespace:MoPlus.ViewModel.Interpreter;assembly=MoPlus.ViewModel"
                    xmlns:ModelsVM="clr-namespace:MoPlus.ViewModel.Models;assembly=MoPlus.ViewModel"
                    xmlns:SolutionsVM="clr-namespace:MoPlus.ViewModel.Solutions;assembly=MoPlus.ViewModel"
                    xmlns:WorkflowsVM="clr-namespace:MoPlus.ViewModel.Workflows;assembly=MoPlus.ViewModel"
                    xmlns:ucon="clr-namespace:MoPlus.SolutionBuilder.WpfClient.UserControls.Conventions"
                    xmlns:Diagrams="clr-namespace:MoPlus.SolutionBuilder.WpfClient.UserControls.Diagrams"
                    xmlns:Entities="clr-namespace:MoPlus.SolutionBuilder.WpfClient.UserControls.Entities"
                    xmlns:Interpreter="clr-namespace:MoPlus.SolutionBuilder.WpfClient.UserControls.Interpreter"
                    xmlns:Models="clr-namespace:MoPlus.SolutionBuilder.WpfClient.UserControls.Models"
                    xmlns:Solutions="clr-namespace:MoPlus.SolutionBuilder.WpfClient.UserControls.Solutions"
                    xmlns:Workflows="clr-namespace:MoPlus.SolutionBuilder.WpfClient.UserControls.Workflows"
                    xmlns:Library="clr-namespace:MoPlus.SolutionBuilder.WpfClient.Library"
                    xmlns:Interaction="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
                    xmlns:avalonDock="clr-namespace:Xceed.Wpf.AvalonDock;assembly=Xceed.Wpf.AvalonDock"
                    xmlns:avalonDockLayout="clr-namespace:Xceed.Wpf.AvalonDock.Layout;assembly=Xceed.Wpf.AvalonDock"
                    xmlns:avalonDockControls="clr-namespace:Xceed.Wpf.AvalonDock.Controls;assembly=Xceed.Wpf.AvalonDock"
                    mc:Ignorable="d" 
                    d:DesignHeight="300" d:DesignWidth="300">
	<UserControl.InputBindings>
		<KeyBinding Modifiers="Ctrl" Key="Q" Command="{Binding CancelJobsCommand}" />
	</UserControl.InputBindings>
	<UserControl.CommandBindings>
		<CommandBinding Command="VM:CustomCommands.CloseTab" Executed="CloseTabExecuted"></CommandBinding>
		<CommandBinding Command="VM:CustomCommands.CloseOtherTabs" Executed="CloseOtherTabsExecuted"></CommandBinding>
		<CommandBinding Command="VM:CustomCommands.NextTab" Executed="NextTabExecuted"></CommandBinding>
	</UserControl.CommandBindings>
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="../Resources/Theme.xaml" />
			</ResourceDictionary.MergedDictionaries>
			<!-- help -->
			<DataTemplate DataType="{x:Type cvm:HelpViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<ucon:HelpControl />
				</Grid>
			</DataTemplate>
			<!-- AuditProperty -->
			<DataTemplate DataType="{x:Type SolutionsVM:AuditPropertyViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Solutions:AuditPropertyDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- CodeTemplate -->
			<DataTemplate DataType="{x:Type InterpreterVM:CodeTemplateViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Interpreter:CodeTemplateDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Collection -->
			<DataTemplate DataType="{x:Type EntitiesVM:CollectionViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:CollectionDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- DatabaseSource -->
			<DataTemplate DataType="{x:Type SolutionsVM:DatabaseSourceViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Solutions:DatabaseSourceDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Diagram -->
			<DataTemplate DataType="{x:Type DiagramsVM:DiagramViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<!-- region protected -->
					<Grid>
						<Diagrams:DiagramControl/>
					</Grid>
					<!-- endregion protected -->
				</Grid>
			</DataTemplate>
			<!-- Entity -->
			<DataTemplate DataType="{x:Type EntitiesVM:EntityViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:EntityDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- EntityReference -->
			<DataTemplate DataType="{x:Type EntitiesVM:EntityReferenceViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:EntityReferenceDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Enumeration -->
			<DataTemplate DataType="{x:Type ModelsVM:EnumerationViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Models:EnumerationDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Feature -->
			<DataTemplate DataType="{x:Type SolutionsVM:FeatureViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Solutions:FeatureDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Index -->
			<DataTemplate DataType="{x:Type EntitiesVM:IndexViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:IndexDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- IndexProperty -->
			<DataTemplate DataType="{x:Type EntitiesVM:IndexPropertyViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:IndexPropertyDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Method -->
			<DataTemplate DataType="{x:Type EntitiesVM:MethodViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:MethodDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Model -->
			<DataTemplate DataType="{x:Type ModelsVM:ModelViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Models:ModelDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- ModelObject -->
			<DataTemplate DataType="{x:Type ModelsVM:ModelObjectViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Models:ModelObjectDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- ModelProperty -->
			<DataTemplate DataType="{x:Type ModelsVM:ModelPropertyViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Models:ModelPropertyDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- ObjectInstance -->
			<DataTemplate DataType="{x:Type ModelsVM:ObjectInstanceViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Models:ObjectInstanceDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Parameter -->
			<DataTemplate DataType="{x:Type EntitiesVM:ParameterViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:ParameterDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Project -->
			<DataTemplate DataType="{x:Type SolutionsVM:ProjectViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Solutions:ProjectDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Property -->
			<DataTemplate DataType="{x:Type EntitiesVM:PropertyViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:PropertyDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- PropertyInstance -->
			<DataTemplate DataType="{x:Type ModelsVM:PropertyInstanceViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Models:PropertyInstanceDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- PropertyReference -->
			<DataTemplate DataType="{x:Type EntitiesVM:PropertyReferenceViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:PropertyReferenceDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Relationship -->
			<DataTemplate DataType="{x:Type EntitiesVM:RelationshipViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:RelationshipDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- RelationshipProperty -->
			<DataTemplate DataType="{x:Type EntitiesVM:RelationshipPropertyViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:RelationshipPropertyDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Solution -->
			<DataTemplate DataType="{x:Type SolutionsVM:SolutionViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Solutions:SolutionDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- SpecTemplate -->
			<DataTemplate DataType="{x:Type InterpreterVM:SpecTemplateViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Interpreter:SpecTemplateDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Stage -->
			<DataTemplate DataType="{x:Type WorkflowsVM:StageViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Workflows:StageDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- StageTransition -->
			<DataTemplate DataType="{x:Type WorkflowsVM:StageTransitionViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Workflows:StageTransitionDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- State -->
			<DataTemplate DataType="{x:Type EntitiesVM:StateViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:StateDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- StateModel -->
			<DataTemplate DataType="{x:Type EntitiesVM:StateModelViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:StateModelDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- StateTransition -->
			<DataTemplate DataType="{x:Type EntitiesVM:StateTransitionViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Entities:StateTransitionDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Step -->
			<DataTemplate DataType="{x:Type WorkflowsVM:StepViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Workflows:StepDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- StepTransition -->
			<DataTemplate DataType="{x:Type WorkflowsVM:StepTransitionViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Workflows:StepTransitionDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Value -->
			<DataTemplate DataType="{x:Type ModelsVM:ValueViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Models:ValueDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- Workflow -->
			<DataTemplate DataType="{x:Type WorkflowsVM:WorkflowViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Workflows:WorkflowDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- XmlSource -->
			<DataTemplate DataType="{x:Type SolutionsVM:XmlSourceViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Solutions:XmlSourceDetailControl/>
				</Grid>
			</DataTemplate>
			<!-- region protected -->
			<!-- TagManagement -->
			<DataTemplate DataType="{x:Type SolutionsVM:TagManagementViewModel}">
				<Grid>
					<Interaction:Interaction.Behaviors>
						<Library:FixKeyboardCuesBehavior/>
					</Interaction:Interaction.Behaviors>
					<Solutions:TagManagementControl/>
				</Grid>
			</DataTemplate>
			<!-- endregion protected -->
		</ResourceDictionary>
	</UserControl.Resources>
	<Grid>
		<avalonDock:DockingManager x:Name="tabDesigner" DocumentsSource="{Binding Items}" ScrollViewer.CanContentScroll="True" PreviewMouseRightButtonDown="OnPreviewMouseRightButtonDown" LayoutUpdated="tabDesigner_LayoutUpdated" PreviewMouseDown="tabDesigner_PreviewMouseDown" ActiveContentChanged="tabDesigner_SelectionChanged">
			<avalonDock:DockingManager.LayoutItemContainerStyle>
				<Style TargetType="{x:Type avalonDockControls:LayoutItem}" BasedOn="{StaticResource DocumentItem}"/>
			</avalonDock:DockingManager.LayoutItemContainerStyle>
			<avalonDock:DockingManager.DocumentPaneControlStyle>
				<Style TargetType="{x:Type avalonDockControls:LayoutDocumentPaneControl}" BasedOn="{StaticResource DocumentPane}"/>
			</avalonDock:DockingManager.DocumentPaneControlStyle>
			<avalonDockLayout:LayoutRoot>
				<avalonDockLayout:LayoutPanel Orientation="Horizontal">
					<avalonDockLayout:LayoutDocumentPane/>
				</avalonDockLayout:LayoutPanel>
			</avalonDockLayout:LayoutRoot>
		</avalonDock:DockingManager>
	</Grid>
</UserControl>